Skip to content

fix(cli): drop wrangler's "(custom domain)" note from deployed URLs - #52

Merged
Madraka merged 1 commit into
mainfrom
fix/deployed-url-custom-domain
Oct 21, 2026
Merged

Madraka merged 1 commit into
mainfrom
fix/deployed-url-custom-domain

Conversation

@Madraka

@Madraka Madraka commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

cloudhal.com's first Workers Builds deploy shipped both Workers, then failed with cloudhal: Invalid URL: wrangler reports a custom domain target as cloudhal.com (custom domain), deployedUrls made it https://cloudhal.com (custom domain), and afterDeploy ran new URL() on it because a fresh checkout's local site has no domains yet. Any deploy-button site with a custom domain would hit it.

deployedUrls now keeps the hostname only. Test: packages/cli/test/deployed-urls.test.ts. Changeset: @cloudhal/cli patch.

🤖 Generated with Claude Code

Wrangler lists a custom domain target as "cloudhal.com (custom
domain)"; deployedUrls turned it into "https://cloudhal.com (custom
domain)". A fresh checkout (Workers Builds) then parsed it with
new URL() to set the site's domain and failed with "Invalid URL" after
both Workers had deployed. Found on cloudhal.com's first CI deploy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
@Madraka
Madraka enabled auto-merge October 21, 2026 13:21
@Madraka
Madraka merged commit dd5e0bb into main Oct 21, 2026
4 checks passed
@Madraka
Madraka deleted the fix/deployed-url-custom-domain branch October 21, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant